package com.mis.clothespos.clothestype.service.impl;

import com.mis.clothespos.clothestype.domain.clothestype;
import com.mis.clothespos.clothestype.mapper.clothestypeMapper;
import com.mis.clothespos.clothestype.service.IclothestypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服装类型service实现类
 */
@Service
@Primary
public class ClothestypeServiceImpl implements IclothestypeService {

    @Autowired
    clothestypeMapper c_mapper;


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return c_mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(clothestype record) {
        return c_mapper.insert(record);
    }

    @Override
    public int insertSelective(clothestype record) {
        return c_mapper.insertSelective(record);
    }

    @Override
    public clothestype selectByPrimaryKey(Integer id) {
        return c_mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(clothestype record) {
        return c_mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(clothestype record) {
        return c_mapper.updateByPrimaryKey(record);
    }

    @Override
    public List<clothestype> selectClothesType() {
        return c_mapper.selectClothesType();
    }
}
